<?php
namespace Api\Model;

use Think\Model\RelationModel;

class DemandModel extends RelationModel
{
    protected $_link = array(
        'province' => array(
            'class_name' => 'Regions',
            'mapping_type' => self::BELONGS_TO,
            'foreign_key' => 'province'
        ),
        'city' => array(
            'class_name' => 'Regions',
            'mapping_type' => self::BELONGS_TO,
            'foreign_key' => 'city'
        )
    );
    
}

